<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
  <head>
    <title><%= rcov_page_title %></title>
    <link href="screen.css" media="all" rel="stylesheet" type="text/css" />
    <link href="print.css" media="print" rel="stylesheet" type="text/css" />
    <% if css %><link href="custom.css" media="all" rel="stylesheet" type="text/css" /><% end %>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    <script type="text/javascript" src="rcov.js"></script>
  </head>
  <body>
    <h1><%= "#{project_name} C0 Coverage Information - RCov" %></h1>
    <h2><%= rcov_page_title %></h2>

    <% if output_threshold != 101 %>
      <!-- Note: 101 is the default threshold if you don't enter one -->
      <p>Threshold: <%= output_threshold %>%</p>
    <% end %>

    <div class="report_table_wrapper">
      <table class='report' id='report_table'>
        <thead>
          <tr>
            <th class="left_align">Name</th>
            <th class="right_align">Total Lines</th>
            <th class="right_align">Lines of Code</th>
            <th class="left_align">Total Coverage</th>
            <th class="left_align">Code Coverage</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td class="left_align"><a href="<%= relative_filename(fileinfo.name) %>"><%= fileinfo.name %></a></td>
            <td class='right_align'><tt><%= fileinfo.num_lines %></tt></td>
            <td class='right_align'><tt><%= fileinfo.num_code_lines %></tt></td>
            <td class="left_align"><%= code_coverage_html(fileinfo.total_coverage_for_report) %></td>
            <td class="left_align"><%= code_coverage_html(fileinfo.code_coverage_for_report) %></td>
          </tr>
        </tbody>
      </table>
    </div>

    <h3>Key</h3>

    <div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>

    <h3>Coverage Details</h3>

    <table class="details">
      <tbody>
        <% fileinfo.num_lines.times do |i| %>
          <% line = fileinfo.lines[i].chomp %>
          <% count = fileinfo.counts[i] %>
          <% width = fileinfo.num_lines.to_s.length %>
          <tr class="<%= line_css(i) %>">
            <td><pre><a name="line<%= i.next %>"><%= i.next.to_s.rjust(width) %></a> <%= CGI::escapeHTML(line) %></pre></td>
          </tr>
        <% end %>
      </tbody>
    </table>

    <p>Generated on <%= generated_on %> with <a href="<%= rcov::UPSTREAM_URL %>">rcov <%= rcov::VERSION %></a></p>

  </body>
</html>
